package com.woniuxy01;

public class Test01 {
    public static void main(String[] args) {
        String s1="aaa";
        String s2="aaa";
        String s3=new String("aaa");
        String s4=new String("aaa");
        System.out.println(s1==s2);         //true
        System.out.println(s1.equals(s2));  //true
        System.out.println(s3==s4);         //false
        System.out.println(s3.equals(s4));  //true
    }
}
